#include "WorldStdafx.h"
#include "SceneTo2D.h"
#include "ObjManager.h"
#include "Node.h"
#include "FourQuadTree.h"

SceneTo2D::SceneTo2D(void)
{
	m_pObjManager = new ObjManager;
}

SceneTo2D::~SceneTo2D(void)
{
	delete m_pObjManager;
}


 void SceneTo2D::Create(int id)  {}
 void SceneTo2D::Delete(int id)  {}
 void SceneTo2D::Mod(int id)  {}
 
 void SceneTo2D::getObjList(int id,OBJLIST & list)  {}

 void	SceneTo2D::removeNode(Node *node)
 {
	 node->removeNode();
	 //delete 
	 delete node;
 }


 Node *	SceneTo2D::CreateNode(const Vector3 & pos,const Quaternion &qua)
 {
	 FourTreeNode * node = new FourTreeNode;
	 node->setPos(pos);
	 node->setQuaternion(qua);
	 gFourQuadTreeManager.AddNode(node);
	 return static_cast<Node *>(node);
 }